<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of login
 *
 * @author aum
 */
class User extends CI_Controller {
    
    public $data ;


    public function __construct() {
        require_once(APPPATH.'libraries/FirePHPCore/FirePHP.class.php');
        
        parent::__construct();
        $this->load->helper('asset');
        $this->firephp = FirePHP::getInstance(true);
        $css[]['src']="jquery/jqueryui/smoothness/jquery-ui-1.8.16.custom.css";
        $css[]['src']="jquery/validation/css/validationEngine.jquery.css";
        $css[]['src']="jquery/validation/css/template.css";
              
        $js[]['src']="jquery/jquery-1.6.3.min.js";
        $js[]['src']="jquery/jqueryui/jquery-ui-1.8.16.custom.min.js";
        $js[]['src']="jquery/validation/js/languages/jquery.validationEngine-en.js";
        $js[]['src']="jquery/validation/js/jquery.validationEngine.js";
        
        //$this->firephp->log($js);
        $data['css']=$css;
        $data['js']=$js;
        $data['page']['title'] = 'My Blog Title';
        $data['page']['heading'] = 'My Blog Heading';
        
        $this->data=$data ;
    }
    
    public function login()
    {
        $data['menu_active']=6;
        if(!isset($_POST['user']) && !isset($_POST['password'])){
            $this->load->view('layout/header',$this->data);
            $this->load->view('user/form_login',$this->data);
            $this->load->view('layout/footer',$this->data);
        }else{
            
        }
    }
    
    public function check_user()
    {
        if(!$_POST['user'] && !$_POST['password']){
            $this->load->view('layout/header',$this->data);
            $this->load->view('user/form_login',$this->data);
            $this->load->view('layout/footer',$this->data);
        }else{
            
        }
    }
    
}

?>
